<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>客户首页 - 银行业务管理系统</title>
    
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.0.0/css/all.min.css" rel="stylesheet">
    
    <style>
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }
        
        .navbar-brand {
            font-weight: bold;
            color: #fff !important;
        }
        
        .main-content {
            padding: 40px 20px;
        }
        
        .welcome-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            padding: 40px;
            margin-bottom: 30px;
            backdrop-filter: blur(10px);
        }
        
        .service-card {
            background: white;
            border-radius: 10px;
            padding: 30px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            text-align: center;
        }
        
        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }
        
        .service-icon {
            font-size: 3rem;
            margin-bottom: 20px;
            color: #007bff;
        }
        
        .service-title {
            font-size: 1.3rem;
            font-weight: bold;
            margin-bottom: 15px;
            color: #333;
        }
        
        .service-description {
            color: #666;
            margin-bottom: 25px;
        }
        
        .btn-service {
            width: 100%;
            padding: 12px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 8px;
            transition: all 0.3s ease;
        }
        
        .btn-balance {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            color: white;
        }
        
        .btn-balance:hover {
            background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
            color: white;
            transform: translateY(-2px);
        }
        
        .btn-trade {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            border: none;
            color: white;
        }
        
        .btn-trade:hover {
            background: linear-gradient(135deg, #ee82e9 0%, #f3455a 100%);
            color: white;
            transform: translateY(-2px);
        }
        
        .btn-deposit {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            border: none;
            color: white;
        }
        
        .btn-deposit:hover {
            background: linear-gradient(135deg, #3d8bfe 0%, #00d9fe 100%);
            color: white;
            transform: translateY(-2px);
        }
        
        .btn-account {
            background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
            border: none;
            color: white;
        }
        
        .btn-account:hover {
            background: linear-gradient(135deg, #32d467 0%, #2ee6c4 100%);
            color: white;
            transform: translateY(-2px);
        }
        
        .btn-transfer {
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
            border: none;
            color: white;
        }
        
        .btn-transfer:hover {
            background: linear-gradient(135deg, #f95d88 0%, #fed12d 100%);
            color: white;
            transform: translateY(-2px);
        }
        
        .feature-list {
            list-style: none;
            padding: 0;
            margin: 20px 0;
        }
        
        .feature-list li {
            padding: 8px 0;
            color: #666;
        }
        
        .feature-list li i {
            color: #28a745;
            margin-right: 10px;
        }
        
        .footer-info {
            text-align: center;
            margin-top: 30px;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.9rem;
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark">
        <div class="container">
            <a class="navbar-brand" href="/customer">
                <i class="fas fa-university"></i>
                银行业务管理系统 - 客户服务
            </a>
            
            <div class="navbar-nav ml-auto">
                <a class="nav-link" href="/">
                    <i class="fas fa-home"></i> 返回首页
                </a>
            </div>
        </div>
    </nav>

    <div class="container main-content">
        <!-- 欢迎卡片 -->
        <div class="welcome-card">
            <div class="text-center">
                <h1 class="mb-4">
                    <i class="fas fa-user-circle text-primary"></i>
                    欢迎使用银行客户服务系统
                </h1>
                <p class="lead text-muted">
                    为您提供安全、便捷的银行业务服务
                </p>
            </div>
        </div>
        
        <!-- 服务功能 -->
        <div class="row">
            <!-- 余额查询 -->
            <div class="col-lg-4 col-md-6">
                <div class="service-card">
                    <div class="service-icon">
                        <i class="fas fa-wallet"></i>
                    </div>
                    <h3 class="service-title">余额查询</h3>
                    <p class="service-description">
                        查询银行卡账户余额<br>
                        安全快捷，实时更新
                    </p>
                    <a href="/customer/balance" class="btn btn-balance btn-service">
                        <i class="fas fa-search"></i>
                        查询余额
                    </a>
                </div>
            </div>
            
            <!-- 交易查询 -->
            <div class="col-lg-4 col-md-6">
                <div class="service-card">
                    <div class="service-icon">
                        <i class="fas fa-history"></i>
                    </div>
                    <h3 class="service-title">交易查询</h3>
                    <p class="service-description">
                        查看交易记录和历史<br>
                        支持多条件筛选
                    </p>
                    <a href="/customer/trades" class="btn btn-trade btn-service">
                        <i class="fas fa-list"></i>
                        查询交易
                    </a>
                </div>
            </div>
            
            <!-- 存取款 -->
            <div class="col-lg-4 col-md-6">
                <div class="service-card">
                    <div class="service-icon">
                        <i class="fas fa-exchange-alt"></i>
                    </div>
                    <h3 class="service-title">存取款业务</h3>
                    <p class="service-description">
                        办理存款和取款业务<br>
                        操作简单，安全可靠
                    </p>
                    <a href="/customer/deposit-withdraw" class="btn btn-deposit btn-service">
                        <i class="fas fa-money-bill-wave"></i>
                        存取款
                    </a>
                </div>
            </div>
            
            <!-- 账户管理 -->
            <div class="col-lg-4 col-md-6">
                <div class="service-card">
                    <div class="service-icon">
                        <i class="fas fa-user-cog"></i>
                    </div>
                    <h3 class="service-title">账户管理</h3>
                    <p class="service-description">
                        银行卡挂失解挂<br>
                        修改取款密码
                    </p>
                    <a href="/customer/account" class="btn btn-account btn-service">
                        <i class="fas fa-cog"></i>
                        账户管理
                    </a>
                </div>
            </div>
            
            <!-- 转账汇款 -->
            <div class="col-lg-4 col-md-6">
                <div class="service-card">
                    <div class="service-icon">
                        <i class="fas fa-paper-plane"></i>
                    </div>
                    <h3 class="service-title">转账汇款</h3>
                    <p class="service-description">
                        银行卡间资金转账<br>
                        实时到账，安全保障
                    </p>
                    <a href="/customer/transfer" class="btn btn-transfer btn-service">
                        <i class="fas fa-arrow-right"></i>
                        立即转账
                    </a>
                </div>
            </div>
            
            <!-- 服务说明 -->
            <!--<div class="col-lg-4 col-md-6">-->
            <!--    <div class="service-card">-->
            <!--        <div class="service-icon">-->
            <!--            <i class="fas fa-info-circle"></i>-->
            <!--        </div>-->
            <!--        <h3 class="service-title">服务说明</h3>-->
            <!--        <div class="text-left">-->
            <!--            <ul class="feature-list">-->
            <!--                <li><i class="fas fa-check"></i> 24小时在线服务</li>-->
            <!--                <li><i class="fas fa-check"></i> 多重安全验证</li>-->
            <!--                <li><i class="fas fa-check"></i> 实时交易处理</li>-->
            <!--                <li><i class="fas fa-check"></i> 操作记录可查</li>-->
            <!--            </ul>-->
            <!--        </div>-->
            <!--    </div>-->
            <!--</div>-->
        </div>
        
        <!-- 页脚信息 -->
        <!--<div class="footer-info">-->
        <!--    <p>-->
        <!--        <i class="fas fa-shield-alt"></i> 您的资金安全是我们的首要责任-->
        <!--        <span class="mx-3">|</span>-->
        <!--        <i class="fas fa-phone"></i> 客服热线：400-888-8888-->
        <!--        <span class="mx-3">|</span>-->
        <!--        <i class="fas fa-clock"></i> 服务时间：7×24小时-->
        <!--    </p>-->
        <!--</div>-->
    </div>

    <!-- JavaScript -->
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        $(document).ready(function() {
            // 添加页面加载动画
            $('.service-card').hide().each(function(index) {
                $(this).delay(index * 100).fadeIn(500);
            });
            
            // 添加按钮点击效果
            $('.btn-service').on('click', function(e) {
                var $btn = $(this);
                var originalText = $btn.html();
                $btn.html('<i class="fas fa-spinner fa-spin"></i> 正在跳转...');
                
                // 延迟跳转以显示加载效果
                setTimeout(function() {
                    window.location.href = $btn.attr('href');
                }, 500);
                
                e.preventDefault();
            });
        });
    </script>
</body>
</html>
